import React, { Component } from 'react';
import { Switch, Route } from "react-router-dom"
import AddProduct from "./AddProduct"
import ProductInfo from "./ProductInfo"
import ProductManager from './ProductManager';

class product extends Component {
    render() {
        return (
            <div>
                <Switch>
                    <Route path="/admin/product/" exact component={ProductManager}></Route>
                    <Route path="/admin/product/add" component={AddProduct}></Route>
                    <Route path="/admin/product/info" component={ProductInfo}></Route>
                </Switch>
            </div>
        );
    }
}

export default product;